module executor.notice.UnNoticeExecutor;


import msgtrans;
import message.Constants;
import message.MsgDefine;
import google.protobuf;
import hunt.logging;
import model.Transform;
import std.array;
import std.conv : to;
import hunt.util.Serialize;
import client.GateServerClient;
import client.MsgServerClient;
import service.OfflineService;

//未使用

@TransportServer(LogicServerName)
class UnNoticeExecutor : AbstractExecutor!(UnNoticeExecutor){

  @MessageId(MESSAGE.CMD_PUT_UNNOTICE)
  void unNotice(TransportContext ctx, MessageBuffer buffer) {

    auto req = new Notification();
    buffer.data.fromProtobuf!Notification(req);
    Msg msg = new Msg;
    msg.fromUserId = req.fromId;
    msg.localId = req.destination;
    msg.type = toMsgType(req.type);
    OfflineService.processPutOffline(msg);

    logInfo("UnNoticeExecutor ----- ");
  }
}

